package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_ChannelType", catalog="Id")
public class TccChannelType extends BaseEntity<TccChannelType> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Valuecode", nameJava="valuecode", typeDataBase="varchar")
	private String valuecode;
	@YsField(nameDataBase="Valuenm", nameJava="valuenm", typeDataBase="varchar")
	private String valuenm;
	@YsField(nameDataBase="Jstype", nameJava="jstype", typeDataBase="tinyint")
	private Integer jstype;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccChannelType setId(Long id) {
		this.id = id;
		return this;
	}
	public String getValuecode() {
		return valuecode;
	}
	public TccChannelType setValuecode(String valuecode) {
		this.valuecode = valuecode;
		return this;
	}
	public String getValuenm() {
		return valuenm;
	}
	public TccChannelType setValuenm(String valuenm) {
		this.valuenm = valuenm;
		return this;
	}
	public Integer getJstype() {
		return jstype;
	}
	public TccChannelType setJstype(Integer jstype) {
		this.jstype = jstype;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccChannelType setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccChannelType setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccChannelType setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccChannelType tccChannelType(
		String valuecode,
		String valuenm,
		Integer jstype,
		Integer status
			) {
		TccChannelType entity = new TccChannelType();
		entity.setValuecode(valuecode);
		entity.setValuenm(valuenm);
		entity.setJstype(jstype);
		entity.setStatus(status);
		return entity;
	}
}